<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>4000</title>
</head>

<body>
  <h3>4000</h3>
  <script>
    // 在本服务器中通过ajax请求得到的数据
    let data = '我是4000中的数据 -- '
    window.onmessage = function (e) {
      // console.log(e.data)
      e.source.postMessage(data + e.data, e.origin)
    }
  </script>
</body>

</html>